// 用户相关API
import request from '../utils/http'; // 假设request是封装的axios实例

// 登录接口
export const loginApi = (params: { username: string; password: string }) => {
  return request.post('/login', params);
};

// 注册接口
export const registerApi = (params: { username: string; password: string }) => {
  return request.post('/register', params);
};


// 获取用户信息接口
export const getUserInfoApi = () => {
  return request.get('/user/info');
};